<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>

    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">

    <!-- No Baidu Siteapp-->
    <meta http-equiv="Cache-Control" content="no-siteapp"/>

    <!-- Add to homescreen for Chrome on Android -->
    <meta name="mobile-web-app-capable" content="yes">

    <!-- Add to homescreen for Safari on iOS -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <meta name="msapplication-TileColor" content="#0e90d2">
    <link rel="stylesheet" href="__CDN__/assets/css/amazeui.min.css">
    <link rel="stylesheet" href="__CDN__/assets/css/app.css">
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
        }
        .beijing{
            background-image: url(__CDN__/images/beijing.png);
            background-size: 100% 100%;
        }
        .content{
            width: 86%;
            margin-left: 7%;
            margin-right: 7%;
            background-image: url(__CDN__/images/kuang.png);
            background-size: 100% 100%;
        }
        .biaoti{
            font-size: 22px;
            font-weight: bold;
        }
        .qian{
            font-size: 18px;
            font-weight: bold;
        }
        .shang{
            height: 15.3%;
            border-bottom: 1px solid #C6A452;
            display: table;
        }
        .zhong{
            height: 280px;
            border-bottom: 1px solid #C6A452;
            clear: both;
            writing-mode: tb-rl;
            -webkit-writing-mode: vertical-rl;
            writing-mode: vertical-rl;
        }
        .xia{
            display: table;
        }
        .cont-box{
            display: table-cell;
            vertical-align: middle;
        }
        .jieqian{
            font-size: 24px;
            display: table-cell;
            vertical-align: middle;
            text-align: center;
        }
        .text-box{
            display: none;
            margin-bottom: 15px;

        }
        .yunshi,.hunyin1,.hunyin2{
            padding: 6px 16px 6px 12.5px;
            border-bottom: 1px solid #C6A452;
        }
        .title{
            font-size: 14px;
            font-weight: bold;
            display: block;
        }
        .content1{
            font-size: 12px;
            display: block;
            line-height: 16px;
        }
        .juzhong span{
            font-size: 24px;
        }
        .ti{
            font-size: 40px;
            font-weight: bold;
            display: block;
            margin-right: 20px;
        }
        .juzhong{
            display: table;
            height: 280px;
        }
        .box{
            display: table-cell;
            vertical-align: middle;
        }
        .box span{
            display: block;
        }
        .bt{
            height: 280px;
        }
    </style>
</head>
<body>
<div class="am-g">
    <div class="am-u-sm-12 beijing am-padding-0" id="bj">
        <div class="am-u-sm-12 am-padding-0 content" id="cot">
            <div class="am-u-sm-12 am-padding-0 am-text-center shang">
				<span class="cont-box">
					<span class="biaoti">{$note.temple.name}</span>
					<br>
					<span class="qian">{$note.desc}</span>
				</span>
            </div>
            <div class="am-u-sm-12 am-padding-0 am-text-center zhong" id="zhong">
                <div class="neirong">
                    <span class="ti" id="biaoti">{$note.name}</span>
                    <div class="juzhong" id="juzhong">
                        <div class="box" id="box">
                            {volist name="note.content_list" id="content"}
                            <span>{$content.content}</span>
                            {/volist}
                        </div>
                    </div>

                </div>
            </div>
            <div class="am-u-sm-12 am-padding-0 xia" id="xa">
                <span class="jieqian" id="jie">点 击 解 签</span>
                <div class="am-u-sm-12 am-padding-0 text-box" id="textbox">
                </div>
            </div>
        </div>
    </div>
</div>
<script src="__CDN__/assets/js/jquery.min.js"></script>
<script src="__CDN__/assets/js/amazeui.min.js"></script>
<script src="__CDN__/assets/libs/layer/src/layer.js"></script>
<script type="text/javascript">
    var obox = document.getElementById('bj');
    var ocot = document.getElementById('cot');
    var oxa = document.getElementById('xa');
    var ojie = document.getElementById('jie');
    var otextbox = document.getElementById('textbox');
    var y = document.documentElement.clientHeight;
    obox.style.minHeight = y+'px';
    ocot.style.minHeight = (0.88*y)+'px';
    ocot.style.marginTop = (0.05*y)+'px';
    ocot.style.marginBottom = (0.07*y)+'px';
    oxa.style.minHeight = (0.36*y)+'px';
    oxa.onclick = function(){
        getContent();
    };
    $(function () {
       getContent();
    });
    function getContent() {
        $.ajax({
            type: "POST",
            url: "__CDN__/index/index/solve_note_content",
            data: {
                user_note_id: '{$note.user_note.id}'
            },
            dataType: "json",
            success: function (data) {
                if(data.success){
                    var html = '';
                    $.each(data.data, function(index,val) {
                        html +='<div class="am-u-sm-12 yunshi">';
                        html +='<span class="title">'+val.type.name+'</span>';
                        html +='<span class="content1">'+val.content+'</span>';
                        html +='</div>';
                    });
                    $('#textbox').empty().append(html);
                    ojie.style.display = 'none';
                    otextbox.style.display = 'block';
                }else{
                    layer.msg(data.msg);
                }
            },
            error: function (data) {
                console.info(data);
            }
        });
    }
</script>
<script type="text/javascript">
    var obiaoti = document.getElementById('biaoti');
    var ozhong = document.getElementById('zhong');
    var ojuzhong = document.getElementById('juzhong');
    var obox = document.getElementById('box');
    var gd = obiaoti.offsetWidth;
    var gx = ozhong.offsetWidth;
    ojuzhong.style.width = gx-gd-37+'px';
</script>
</body>
</html>
